/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.git-repository-commit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.git-repository-commit-header-actions {
    white-space: nowrap;
}

.git-repository-commit-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 20px;

    > a[class*='tlp-badge'] {
        margin: 0 0 0 5px;

        &:first-of-type {
            margin: 0 0 0 $tlp-half-spacing;
        }
    }
}

.git-repository-commit-action {
    margin: 0 0 0 $tlp-spacing;
    overflow: auto;
}

.git-repository-commit-info {
    display: flex;
    flex-wrap: wrap;
}

.git-repository-commit-metadata {
    flex: 1 1 auto;
}

.git-repository-commit-metadata-properties {
    display: flex;
    flex-wrap: wrap;
}

.git-repository-commit-metadata-properties-group {
    margin: 0;

    &:first-child {
        margin: 0 $tlp-double-spacing $tlp-spacing 0;
    }
}

.git-repository-commit-description {
    min-width: 300px;
    margin: 0 $tlp-double-spacing $tlp-spacing 0;
    padding: 0 0 0 $tlp-half-spacing;
    border-left: 2px solid $tlp-theme-color;
    white-space: pre-wrap;
}

.git-repository-commit-reference {
    font-size: 12px;
    font-style: italic;
}

.git-repository-commit-metadata-username-date {
    display: flex;
    align-items: center;
}

.git-repository-commit-metadata-username-avatar {
    flex: 0 0 auto;
    margin: 0 5px 0 0;
}

.git-repository-commit-metadata-date {
    margin: 0 0 0 $tlp-half-spacing;
    font-size: 14px;

    > .fa-clock-o {
        margin: 0 2px 0 0;
        font-size: 12px;
    }
}

.git-repository-commit-metadata-changes {
    margin: 0 0 $tlp-double-spacing;
    font-size: 24px;
}

.git-repository-commit-file-stat-added,
.git-repository-commit-file-added,
.git-repository-commit-metadata-changes-added {
    color: $tlp-ui-success;
}

.git-repository-commit-file-stat-removed,
.git-repository-commit-file-deleted,
.git-repository-commit-metadata-changes-removed {
    color: $tlp-ui-danger;
}

.git-repository-commit-file-changed {
    color: $tlp-ui-warning;
}

.git-repository-commit-file-stat-binary {
    color: $tlp-ui-dimmed;
}

.git-repository-commit-metadata-changes-added {
    margin: 0 5px 0 0;
}

.git-repository-commit-file-status {
    width: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
